create

abstract fun create(sceneLayout: SceneLayout = SceneLayout.FREE): DesignBlock

Create a new scene, along with its own camera.

Return

a handle to the empty scene.

Parameters

sceneLayout

the desired layout of the scene.


abstract fun create(designUnit: DesignUnit, fontSizeUnit: FontUnit? = null, sceneLayout: SceneLayout = SceneLayout.FREE): DesignBlock

Create a new scene with explicit design and font-size units.

When fontSizeUnit is null it is paired with designUnit: a Pixel design unit yields a Pixel font-size unit, and any other design unit yields a Point font-size unit.

Return

a handle to the empty scene.

Parameters

designUnit

the design unit of the new scene.

fontSizeUnit

the unit interpreted by BlockApi.setTextFontSize / BlockApi.getTextFontSizes; when null, paired automatically with designUnit.

sceneLayout

the desired layout of the scene.